<?php
namespace app\time\controller;
use app\common\lib\Redis;
class Time{
    public function redis_show()
    {
        echo '下方';
        dump(Redis::Instance()->sMembers('down_order'));
        echo '中间';
        dump(Redis::Instance()->sMembers('center_order'));
        echo '上方';
        dump(Redis::Instance()->lrange('up_order',0,-1));
        echo '团';
        $group=Redis::Instance()->hGetAll('group');
        dump($group);
        $oid=json_decode($group['oid'],true);
        if(!$group){
            $oid=[];

        }
        $ing=array_merge(Redis::Instance()->sMembers('down_order'),$oid);
        dump($ing);

    }
    // public function del_key()
    // {
    //     Redis::Instance()->del('down_order');
    //     Redis::Instance()->del('center_order');
    //     Redis::Instance()->del('up_order');
    //     Redis::Instance()->del('group');

    // }
}
